<?php

namespace App\Models\Vocabulary;

use Illuminate\Database\Eloquent\Model;
use Dcat\Admin\Traits\HasDateTimeFormatter;
use Illuminate\Database\Eloquent\Relations\BelongsTo;

class VocabularyOption extends Model
{
    use HasDateTimeFormatter;

    protected $table = 'vocabulary_options';
    protected $fillable = ['vocabulary_id', 'title'];

    public function vocabulary(): BelongsTo
    {
        return $this->belongsTo(Vocabulary::class);
    }
}
